export default {
    state: {
        activeTab: null
    },
    actions: {
        updateActiveTab({commit}, tab) {
            commit('setActiveTab', tab);
        }
    },
    mutations: {
        setActiveTab(state, tab) {
            state.activeTab = tab;
        }
    },
    getters: {
        getActiveTab(state) {
            return state.activeTab;
        }
    }
}
